import request from "../../utils/request";


export function getUserById (query) {
    return request({
        url: '/api/user/'+query,
        method: 'get'
    })
}

export function getConsultantById (query) {
    return request({
        url: '/api/user/consultant/'+query,
        method: 'get'
    })
}


export function getConsultants(){
    return request({
        url: '/api/user/consultants',
        method: 'get'
    })
}

export function getWorkers(){
    return request({
        url: '/api/user/workers',
        method: 'get'
    })
}


export function getSpareTeacherByTimeId(query){
    return request({
        url: '/api/user/spareconsultants/'+query,
        method: 'get'
    })
}

export function getSpareFirstvisitmanByTimeId_API(query){
    return request({
        url: '/api/user/sparefirstvisitmen/'+query,
        method: 'get'
    })
}

export function getFirstvisitman_api(){
    return request({
        url: '/api/user/role/firstvisit',
        method: 'get'
    })
}

export function getFirstvisitmanById(x){
    return request({
        url: '/api/user/firstvisits/' + x,
        method: 'get'
    })
}